/*
 * Powered By [fdlm]
 * Web Site: http://www.fdlm.cn
 * Since 2014 - 2015
 */

package com.sjyy.areadict.model;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import cn.org.rapid_framework.util.DateConvertUtils;

import java.util.*;

import com.sjyy.areadict.model.*;
import com.sjyy.areadict.service.*;
import com.sjyy.areadict.vo.query.*;

import javacommon.base.*;
import javacommon.util.*;
import javacommon.page.Page;

/**
 * @author cty email:caotianye@fdlm.cn
 * @version 1.0
 * @since 1.0
 */


public class Areadict extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "Areadict";
	public static final String ALIAS_AREADICT_ID = "areadictId";
	public static final String ALIAS_AREA_NAME = "areaName";
	public static final String ALIAS_PARENT_AREA_ID = "parentAreaId";
	public static final String ALIAS_AREA_INDEX = "areaIndex";
	public static final String ALIAS_MUNICIPALITY = "municipality";
	
	//date formats
	
	//columns START
    /** areadictId       db_column: areadict_id */	
	
	private java.lang.Integer areadictId;
    /** areaName       db_column: area_name */	
	@NotBlank @Length(max=32)
	private java.lang.String areaName;
    /** parentAreaId       db_column: parent_area_id */	
	
	private java.lang.Integer parentAreaId;
    /** areaIndex       db_column: area_index */	
	
	private java.lang.Integer areaIndex;
    /** municipality       db_column: municipality */	
	
	private java.lang.Integer municipality;
	//columns END

	public Areadict(){
	}

	public Areadict(
		java.lang.Integer areadictId
	){
		this.areadictId = areadictId;
	}

	public void setAreadictId(java.lang.Integer value) {
		this.areadictId = value;
	}
	
	public java.lang.Integer getAreadictId() {
		return this.areadictId;
	}
	public void setAreaName(java.lang.String value) {
		this.areaName = value;
	}
	
	public java.lang.String getAreaName() {
		return this.areaName;
	}
	public void setParentAreaId(java.lang.Integer value) {
		this.parentAreaId = value;
	}
	
	public java.lang.Integer getParentAreaId() {
		return this.parentAreaId;
	}
	public void setAreaIndex(java.lang.Integer value) {
		this.areaIndex = value;
	}
	
	public java.lang.Integer getAreaIndex() {
		return this.areaIndex;
	}
	public void setMunicipality(java.lang.Integer value) {
		this.municipality = value;
	}
	
	public java.lang.Integer getMunicipality() {
		return this.municipality;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("AreadictId",getAreadictId())
			.append("AreaName",getAreaName())
			.append("ParentAreaId",getParentAreaId())
			.append("AreaIndex",getAreaIndex())
			.append("Municipality",getMunicipality())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getAreadictId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Areadict == false) return false;
		if(this == obj) return true;
		Areadict other = (Areadict)obj;
		return new EqualsBuilder()
			.append(getAreadictId(),other.getAreadictId())
			.isEquals();
	}
}

